package com.manu;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class CheckLotoActivity extends Activity {
	  /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	/*Segundo cambio manu*/
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        final EditText txtNombre = (EditText)findViewById(R.id.TxtNumero);
    	final Button btnHola = (Button)findViewById(R.id.BtnHola);
      
       btnHola.setOnClickListener(new OnClickListener() {
        public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent intent = new Intent(CheckLotoActivity.this, CheckNum.class);
		     
            Bundle bundle = new Bundle();
            bundle.putString("NUMERO", txtNombre.getText().toString());
            intent.putExtras(bundle);
     
            startActivity(intent);
			
		}
    });
    }
}